<?php defined('SYSPATH') OR die('No direct access allowed.');


class Plug_Print extends Nonclosingnode {
	
	public function push_clause($tag_parts)
	{
		$this->clause = '';
		
		foreach ($tag_parts as $index => $tag_part)
		{
			$this->clause .= ' ' . $tag_part;
		}
		
		$this->clause = trim(str_replace("print", "", $this->clause));
	}
	
	public function parse_open()
	{
		return '<?php echo ' . $this->clause . '; ?>';
	}
}